package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 调度日志
 *
 * @author yuheng
 * @since 1.0.0 2024-06-12
 */

@Data
@TableName("TMS_PROD_DIS_LOG")
@ApiModel(value = "TmsProdDisLog对象", description = "TmsProdDisLog")
public class TmsProdDisLog implements Serializable {
	/**
	* 主键
	*/
    @ApiModelProperty(value = "主键")
	@TableId
	private Long id;

	/**
	* 交接班日期
	*/
    @ApiModelProperty(value = "交接班日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private LocalDate shiftDate;

	/**
	* 班次,01白班02夜班
	*/
    @ApiModelProperty(value = "班次,01白班02夜班")
	private String classCode;

	/**
	* 交接班内容
	*/
    @ApiModelProperty(value = "交接班内容")
	private String remark;

	/**
	* 创建者-ID
	*/
    @ApiModelProperty(value = "创建者-ID")
	private Long createBy;

	/**
	* 创建者-姓名
	*/
    @ApiModelProperty(value = "创建者-姓名")
	private String createByName;

	/**
	* 创建时间
	*/
    @ApiModelProperty(value = "创建时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime createTime;

	/**
	* 更新者-ID
	*/
    @ApiModelProperty(value = "更新者-ID")
	private Long updateBy;

	/**
	* 更新者-姓名
	*/
    @ApiModelProperty(value = "更新者-姓名")
	private String updateByName;

	/**
	* 更新时间
	*/
    @ApiModelProperty(value = "更新时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime updateTime;

}
